package org.jeecgframework.web.material.dao;

import org.apache.log4j.Logger;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.jeecgframework.web.activiti.entity.Leave;
import org.jeecgframework.web.material.entity.OrderProcessEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class OrderProcessDao {
	
	@Autowired
	private SessionFactory sessionFactory;
	
	private static final Logger logger = Logger.getLogger(OrderProcessDao.class);
	
	
	public OrderProcessEntity getOrderProcess(int id){
		Session sesson = sessionFactory.getCurrentSession();
		return (OrderProcessEntity)sesson.load(OrderProcessEntity.class, id);
	}
}
